package oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class StuTest {
    public static void main(String[] args) {
        Student st=new Student();
        //有错误，私有的属性不能直接访问
//        st.name="孙悟空";
//        st.age=-200;
//        st.phone="194883383";

        st.setName("孙悟空");
        st.setPhone("14593933");
        st.setAge(200);
        st.show();
        System.out.println("--------------------------------------");
        Student stu=new Student("沙悟净",-800,"13939393933");
        stu.show();
        //
        // stu.cry();
    }

}
